<?php
/**
 * Created by PhpStorm.
 * User: sosyuki
 * Date: 2019-03-20
 * Time: 17:19
 */

namespace Drupal\points;


use Payment;
use PaymentMethodController;
use PaymentStatusItem;

class PointsPaymentMethodController extends PaymentMethodController {

  public function __construct() {
    $this->title = t('积分支付');
    $this->description = t('积分支付.');
  }

  /**
   * @param \Payment $payment
   *
   * @return bool|void
   */
  public function execute(Payment $payment) {
    $payment->setStatus(new PaymentStatusItem(PAYMENT_STATUS_PENDING));
  }
}
